package com.yanlight.util;

import com.alibaba.fastjson.JSONObject;

public class LogUtil {

    public static String TAG = "LogUtil";

    public static void showLog(Object object) {
        showLog(TAG, object);
    }

    public static void showLog(String tag, Object object) {
        System.out.println("==============================================" + tag + "==============================================");
        if (object instanceof String) {
            System.out.println(object);
        } else {
            System.out.println(JSONObject.toJSONString(object));
        }
        System.out.println("====================================================================================================");
    }

}
